//
//  UIFont+LFZCategory.m
//  LFZCustomView
//
//  Created by boniu on 2022/5/25.
//

#import "UIFont+LFZCategory.h"

@implementation UIFont(LFZCategory)

//中黑体
+ (UIFont *)pfMediuSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Medium" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}

//中粗体
+ (UIFont *)pfSemiboldSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Semibold" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}

//常规
+ (UIFont *)pfRegularSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Regular" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}

//极细
+ (UIFont *)pfUltralightSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Ultralight" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}

//细
+ (UIFont *)pfLightSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Light" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}

//纤细体
+ (UIFont *)pfThinSize:(CGFloat)fontSize {
    
    UIFont *font = nil;
    font = [UIFont fontWithName:@"PingFangSC-Thin" size:fontSize];
    if (font == nil) {
        font = [UIFont systemFontOfSize:fontSize];
    }
    
    return font;
}


@end
